package item10;

public class Parallelogram extends Quadrangle {

	public Parallelogram() {
		super.draw1();
	}
	public static void main(String[] args) {
		Parallelogram q = new Parallelogram();
		draw(q);
		Quadrangle qq = new Parallelogram();
		
		if (qq instanceof Parallelogram) {
			Parallelogram pp = (Parallelogram) qq;
			pp.draw1();
		}
		
	}
	public void draw2(){
		super.draw1();
	}

}

class Quadrangle {
	public Quadrangle() {
	}
	public static void draw(Quadrangle q) {
		
	}
	public void draw1(){
		System.out.println("draw1");
	}
}